// <copyright file="Feed.cs" company="Clever Software">
// Copyright (c) 2013, 2014 All Right Reserved, http://www.cleversoftware.by
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Clever Software</author>
// <email>info@cleversoftware.by</email>
// <date>2014-02-04</date> 
// <summary>CleverCMS source code</summary>

//All propertiex should be virtual according http://msdn.microsoft.com/en-us/library/dd468057.aspx

namespace CleverCMS.Blog.Data.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public class Feed 
    {
        public Feed()
        {
        }

        [Key]
        public virtual int FeedId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual bool Rss { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual int CategoryId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string Title { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string Description { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string URL { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual bool Active { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual DateTime DateCreated { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string ListXPath { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual bool Translate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual bool Tomorrow { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual bool ImageForContent { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string Encoding { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual string Period { get; set; }

        [ForeignKey("CategoryId")]
        public virtual BlogEntryCategory Category { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual ICollection<FeedResults> FeedResults { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual ICollection<BlogEntry> BlogEntry { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public virtual ICollection<FeedXPath> FeedXPath { get; set; }
    }
    
}